home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Extensions
- Sent: 6/26/96 11:35 AM
- Received: 6/26/96 11:51 AM
- From: The3Furies@aol.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Mark,
-
- I have searched through both the ODFDraw & ODFCyberStarter projects and
- am unable to find any evidence of extension subclasses (I assume I'm
- not looking in the right places?) I searched on the word extension
- and nothing in the project matched - just stuff for the semantic
- interface extension in the framework files. I am essentially looking
- for a spcecific example of how to implement what is discussed in the
- Extensions Manager engineering note which tells what to do, but not
- when or where.
-
- I would like to create a custom extension for my part so that a containing
- part can get data in & out of it among other functions. I need to know:
-
- * Where do I call RegisterExtensions()? in Part::Initialize() ?
- * I could use an example of a valid CreateExtensionFunc function
- * I would like to see an example of the source for an extension in ODF - is
- it
- the same as code for non-ODF parts - ie are the Text & Sound editiors good
- examples?
- * The Eng. note mentions calling IsValid in every method, but in the
- Text & Sound editiors, it isn't called... is this ODF specific?
-
- Chris Colapietro
-
- >Release 1 has extensions samples: ODFDraw publishes a subclass of the
- >scripting extension, and ODFCyberStarter publishes a subclass of the main
- >Cyberdog extension. In both these cases the part is acting as a server and
- >some other part is acquiring the extension and calling it. Calling an
- >extension is nothing special, since it's just a SOM object. You do have to
- >find a server part first, which may mean something like walking the OD
- >component hierarchy and calling HasExtension/GetExtension on each part.
- >
- >In Release 2 there will be more examples: Container and Bitmap act as
- >server and client for a new sample extension, and Bitmap also publishes the
- >Cyberdog extension (and also calls it itself).
- >
- >markl
-
- >>At 9:04 AM 6/26/96, The3Furies@aol.com wrote:
- >>Are there any examples available of writing extensions in ODF, and/or of
- >>calling a parts extensions? I have looked at the tech note, and at
- >>the Text & Sound editors on DR4 for implementation examples, but
- >>could use further help specific to ODF. Also, I have not yet found any
- >>examples of calling extensions.
-
- ========================================================================
- Chris Colapietro email: the3furies@aol.com
- President
- The 3 Furies Software, Inc. voice: (804) 698-6859
- ========================================================================
-